package com.yjd.comm.easycard.enums;



/**
 * <b>description</b>：易借卡激活状态<br>
 * <b>time</b>：2015-4-8上午11:34:47 <br>
 * <b>author</b>： SongJian
 */
public enum ECActiveEnum {

	ACTIVE_NO(0,"未激活"),
	ACTIVE_YES(1,"已激活"),
	ACTIVE_SUCCESS(2,"激活成功"),
	ACTIVE_ACTED_ERROR(3,"该卡已激活,请勿重复激活"),
	ACTIVE_MOBILE_DISMATCH(4,"手机号不匹配"),
	ACTIVE_ERROR(5,"激活失败"),
	ACTIVE_CARD_MISSING(6,"没有找到该卡好"),
	ACTIVE_CARD_INVALID(7,"该卡号已失效"),
	EasycardIdentityid_Notmatch_Site_IdentityId(8,"网站账户实名认证信息与易借贷后台记录的身份证信息不一致");
	
	private int value;
	private String description;

	private ECActiveEnum(int value, String description) {
		this.value = value;
		this.description = description;
	}

	public int getValue() {
		return value;
	}

	public String getDescription() {
		return description;
	}

	public static ECActiveEnum get(int value) {
		ECActiveEnum[] enums = ECActiveEnum.values();
		for (ECActiveEnum enum1 : enums) {
			if (enum1.getValue()==value) {
				return enum1;
			}
		}
		return null;
	}

	public static String getDesc(Integer value) {
		ECActiveEnum enum1 = ECActiveEnum.get(value);
		return enum1 != null ? enum1.getDescription() : null;
	}
	
}
